package com.wuchao.spring.IocAndAop;

import com.wuchao.spring.aopPlus.AopConstruorP;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author wuchao66
 * @Date 2022/7/4 11:10
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext cpac =
                new ClassPathXmlApplicationContext("ApplicationContext.xml");//拿到spring的配置文件
        TheIoc theIoc=
                (TheIoc)cpac.getBean("TheIoc");
        theIoc.show();
    }
}
